//
//  WCTildeInPathTransformer.m
//  WabbitCode
//
//  Created by William Towe on 1/31/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCTildeInPathTransformer.h"


@implementation WCTildeInPathTransformer
+ (Class)transformedValueClass {
	return [NSString class];
}
+ (BOOL)allowsReverseTransformation { return YES; }

- (id)transformedValue:(id)value {
    return (value == nil)?nil:[value stringByAbbreviatingWithTildeInPath];
}

- (id)reverseTransformedValue:(id)value {
	return (value == nil)?nil:[value stringByExpandingTildeInPath];
}
@end
